package com.xing.radar.daoimpl;

import java.util.List;

import org.apache.ibatis.session.RowBounds;

import com.xing.radar.bean.WebSite;
import com.xing.radar.dao.Dao;

public class RadarWebSiteDaoImpl extends Dao {

	private final String daoNamespace = "com.xing.radar.daoimpl.RadarWebSiteDaoImpl";

	public RadarWebSiteDaoImpl() {
		super("website");
	}

	public WebSite getById(int id) {
		return (WebSite) selectOne(daoNamespace + ".getById", id);
	}

	public List<WebSite> getWebSites(int offset, int limit) {
		return (List<WebSite>) selectList(daoNamespace + ".getWebSites", null, new RowBounds(offset, limit));
	}
}
